<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>04-v-text的使用.html</title>
</head>

<body>
  <div id='app' v-cloak>
    <h2>{{message}}</h2>
    <!-- 不灵活，一般不使用 -->
    <h2 v-text="message"></h2>
  </div>
  <script src='../js/vue.js'></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        message: 'hello Vue'
      }
    })
  </script>
  <style>
    [v-cloak] {
      display: none;
    }
  </style>
</body>

</html>